Cooperative Object-Oriented Programming in Python

نویسنده

  • A. Chan
چکیده

In this article we will investigate the objectoriented features of the Python programming language. Python supports encapsulation with limited information hiding; it has full support in polymorphism and inheritance. Therefore, Python fits the definition of object-oriented programming languages. On the other hand, there are some “add-on” features that are commonly available in many main-stream object-oriented languages but are missing in Python. We will examine these features and, whenever possible, provide “work-around” so the user can enjoy the benefits of these missing features. We call this “cooperative object-oriented programming” because when we “simulate” these features, we often need to advise the users not to trespass into the forbidden zone so that the “work-around” can function as expected.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Using Python To Teach Object-Oriented Programming in CS1

In recent years, Python has made great inroads as an introductory language in computer science education, but few emphasize its object-oriented nature; it is most often introduced with a procedural paradigm. For those teaching object orientation in CS1, Java remains the predominant language. We suggest that Python is an excellent choice for teaching an object-oriented CS1. Based on our experien...

متن کامل

Introduction to Programming with Greenfoot - Object-Oriented Programming in Java with Games and Simulations, Second Edition

Python 3 Object Oriented Programming is writen by Dusty Phillips in English language. Release on 2010-07-26, this book has 404 page count that contain essential information with easy reading structure. The book was publish by Packt Publishing, it is one of best programming book genre that gave you everything love about reading. You can find Python 3 Object Oriented Programming book with ISBN 97...

متن کامل

Generating Python Code From Object-Z Specifications

Object-Z is an object-oriented specification language which extends the Z language with classes, objects, inheritance and polymorphism that can be used to represent the specification of a complex system as collections of objects. There are a number of existing works that mapped Object-Z to C++ and Java programming languages. Since Python and Object-Z share many similarities, both are object-ori...

متن کامل

Concurrent Object-Oriented Programming in Python with ATOM

Object-oriented mechanisms, such as classes and inheritance, and concurrency mechanisms, such as threads and locks, provide two separate software structuring dimensions. The development of concurrent objectoriented software requires both dimensions to be taken into account simultaneously. Previous research has identified that substantial effort is required by programmers to avoid clashes in str...

متن کامل

Declarative Semantics in Object-Oriented Software Development - A Taxonomy and Survey

One of the modern paradigms to develop an application is object oriented analysis and design. In this paradigm, there are several objects and each object plays some specific roles in applications. In an application, we must distinguish between procedural semantics and declarative semantics for their implementation in a specific programming language. For the procedural semantics, we can write a ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2011